<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
       <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit|ie-comp|ie-stand"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="../css/style.css"/>
    <link href="../assets/css/codemirror.css" rel="stylesheet"/>
    <link rel="stylesheet" href="../assets/css/ace.min.css" />
    <link rel="stylesheet" href="../font/css/font-awesome.min.css" />
    <link href="../css2/1140.css" rel="stylesheet"/>
    <link href="../css2/normalize.css" rel="stylesheet"/>
    <link href="../css2/jquery-ui.css" rel="stylesheet"/>
    <link href="../css2/jquery.idealforms.min.css" rel="stylesheet" media="screen"/>
    <link href="../css2/styles.css" rel="stylesheet" media="all"/>
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="../assets/css/ace-ie.min.css" />
    <![endif]-->
    <script src="../js/jquery-1.9.1.min.js"></script>
    <script src="../assets/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../Widget/Validform/5.3.2/Validform.min.js"></script>
    <script src="../assets/js/typeahead-bs2.min.js"></script>
    <script src="../assets/js/jquery.dataTables.min.js"></script>
    <script src="../assets/js/jquery.dataTables.bootstrap.js"></script>
    <script src="../assets/layer/layer.js" type="text/javascript" ></script>
    <script src="../js/lrtk.js" type="text/javascript" ></script>
    <script src="../assets/layer/layer.js" type="text/javascript"></script>
    <script src="../assets/laydate/laydate.js" type="text/javascript"></script>




    <title>管理员</title>
</head>

<body>



<div class="page-content clearfix">
    <div class="administrator">


        <div id="main" >
            <div class="container clearfix">
                <div class="row">



                    <div class="eightcol last">

                        <!-- Begin Form -->

                        <form method="post" action="${pageContext.request.contextPath}/hLfdshop/updateLfdshop" id="my-form" enctype="multipart/form-data">

                                <div>
                                    <h2>修改商家信息:</h2>
                                </div>
                                <input id="username" name="id" value="${lfdshop.id }" type="hidden"/>
                                <div><label>店名:</label><input id="username" name="dname" value="${lfdshop.dname }" type="text"/></div>
                                <div><label>均价:</label><input id="username" name="price" type="text" value="${lfdshop.price }"/></div>
                                <div><label>地址:</label><input id="username" name="address" type="text" value="${lfdshop.address }"/></div>
                                <div><label>简介:</label><input id="username" name="brief" value="${lfdshop.brief }" type="text"/></div>
                                <div><label>账号:</label><input id="username" name="name" type="text" value="${lfdshop.name }"/></div>
                                <div><label>密码:</label><input id="username" name="pwd" type="password" value="${lfdshop.pwd }"/></div>

                            <div><hr/></div>

                            <div>
                                <button type="submit">保存</button>
                                <button id="reset" type="button">取消</button>
                            </div>

                        </form>


                    </div>

                </div>
            </div>
        </div>


        <script src="../js/jquery-1.8.3.min.js"></script>
        <script src="../js/jquery-ui.min.js"></script>
        <script src="../js/jquery.idealforms.js"></script>
        <script>



            var options = {

                onFail: function() {
                    alert( $myform.getInvalid().length +' invalid fields.' )
                },

                inputs: {

                    'username': {
                        filters: 'required username',
                        data: {
                            //ajax: { url:'validate.php' }
                        }
                    },
                    'file': {
                        filters: 'extension',
                        data: { extension: ['jpg'] }
                    },

                    'comments': {
                        filters: 'min max',
                        data: { min: 50, max: 200 }
                    },
                    'states': {
                        filters: 'exclude',
                        data: { exclude: ['default'] },
                        errors : {
                            exclude: 'Select a State.'
                        }
                    },
                    'langs[]': {
                        filters: 'min max',
                        data: { min: 2, max: 3 },
                        errors: {
                            min: 'Check at least <strong>2</strong> options.',
                            max: 'No more than <strong>3</strong> options allowed.'
                        }
                    }
                }
            };

            var $myform = $('#my-form').idealforms(options).data('idealforms');

            $('#reset').click(function(){ $myform.reset().fresh().focusFirst() });
            $myform.focusFirst();

        </script>


    </div>
</div>

</body>
</html>
